/**
 * 路由
 * @module router
 */

import Vue from 'vue'
import Router from 'vue-router'
import index from './views/mainPage' //首页
import importPage from './views/importPage' //批量导入 导入页面
import handle from './views/handlePage' //新增，编辑
import result from './views/resultPage' //搜索结果页
import detail from './views/detail' //详情页

Vue.use(Router)
export default new Router({
    routes: [{
            path: '/',
            name: 'index',
            component: index
        },
        {
            path: '/importPage',
            name: 'importPage',
            component: importPage
        },
        {
            path: '/handle',
            name: 'handle',
            component: handle
        },
        {
            path: '/resultPage',
            name: 'result',
            component: result
        },
        {
            path: '/detail',
            name: 'detail',
            component: detail
        }
    ]
})